/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:35
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:35
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL

/* 推荐信息 */
// 新增推荐信息
const talentRecommendationCreate = (params) => axios.post(baseUrl + url.talentRecommendation.create, params)

// 删除推荐信息
const talentRecommendationDelete = (id) => axios.delete(baseUrl + url.talentRecommendation.delete + `/${id}`)

// 修改推荐信息
const talentRecommendationUpdate = (params, id) => axios.post(baseUrl + url.talentRecommendation.update + `/${id}`, params)

// 获取某个推荐信息
const talentRecommendationLoad = (id) => axios.get(baseUrl + url.talentRecommendation.load + `/${id}`)

// 获取推荐信息列表
const talentRecommendationPage = (params) => axios.get(baseUrl + url.talentRecommendation.page, { params })

export default {
    talentRecommendationCreate,
    talentRecommendationDelete,
    talentRecommendationUpdate,
    talentRecommendationLoad,
    talentRecommendationPage,
}
